package com.gxy.learn.backup.shiroauth.common.exception;

import lombok.Data;

/**
 * author: Gao xueyong
 * Create at: 2020/4/12 6:08 下午
 */
@Data
public class BusinessException extends RuntimeException {
    private Integer code;

    private BusinessException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public BusinessException() {
    }

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(String message, Throwable cause) {
        super(message, cause);
    }

    public BusinessException(Throwable cause) {
        super(cause);
    }

    public BusinessException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
